import { createApp } from 'vue'
import App from './App.vue'
import router from './router'

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

import * as ElementPlusIconsVue from '@element-plus/icons-vue'	//element-icons
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'   //国际化
// import 'element-plus/theme-chalk/display.css'

import './assets/global.css'
import { createPinia } from 'pinia'

const app = createApp(App);

app.use(router);

app.use(ElementPlus, { locale: zhCn });
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
};
app.use(createPinia());


//关闭 vue warn
app.config.warnHandler = () => null;

app.mount('#app')